package org.pro.bookkeeping.core.service.impl;

import org.pro.bookkeeping.core.common.util.StringUtil;
import org.pro.bookkeeping.core.dao.AccountDao;
import org.pro.bookkeeping.core.pojo.Account;
import org.pro.bookkeeping.core.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional(rollbackFor = Exception.class)
@Service
public class AccountServiceImpl implements AccountService {

	@Autowired
	private AccountDao accountDao;

	private Integer retCode = 0;
	private String ExceptionInfo = null;
	public String findAccountByUserID(String userID) {
		Account account = accountDao.findAccountByUserID(userID);
		return StringUtil.WriteJson(retCode, ExceptionInfo, account);
	}
}
